@import '../variables';

// $colorHead: rgba(0,150,255,0.3); //table 头部颜色
//$colorHead:  rgba(0,150,255,0.3); //table 头部颜色
$colorHead:  rgba(0,150,255,0.3);
$theadBorder: #002b4d;
$colorBorder: rgba(0,150,255,0.3);
.el-table {
  background-color: transparent;
  color: $colorTextMain;
  border: none;
  table {
    width: auto !important;
  }
  .el-table__header-wrapper {
    position: relative;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
    background: transparent;
   // margin-bottom: 5px;
    border-radius: 4px;
  }
  .el-table__empty-block {
    height: 98%!important;
    width: auto !important;
  }
  thead {
    color: #adadad;
    font-size: 14px;
    border: none;
    background: $colorHead;
    tr {
      border-bottom: unset;
      padding: 6px 0;

      th.is-leaf {
        border-bottom: none;
      }
      th.el-table__cell {
        background: none;
      }
    }
  }
  thead.is-group th.el-table__cell {
    background: none;
  }
  tbody {
    tr {
      // background: rgba(0, 43, 77, 0.22);
      background:#002E83;// rgba(0,150,255,0.3);
      padding: 6px 0;
      margin: 5px 0;

      th.is-leaf {
        border-bottom: none;
      }
    }
  }
  th,
  tr {
    .el-table__cell {
     // border-bottom: 1px solid $colorBorder !important;
       border:none;
      //  border-top:5px solid  #072961;
      //  border-color: #4285A6;  //如果不复用就在单独页面修改
    }
  }

  td,
  th.is-leaf {
    border-bottom: 1px solid $colorBorder;
  }

  .el-table__body {
    tr:hover > td {
      background-color: $colorBack3 !important;
    }
  }

  .el-table__body-wrapper {
    // height: calc(100% - 40px);
    height: calc(100% - 54px);
    overflow: auto;
    overflow-x: hidden;
  }

  th.el-table__cell.is-leaf {
    border-bottom: none;
  }
  &::before {
    height: 0;
  }

  .el-loading-mask {
    background-color: $colorBack;
  }
}

.el-table--small td,
.el-table--small th {
  padding: 4px 0;
}
.el-table tr {
  background: none;
}
.el-table--border .el-table__cell,
.el-table__body-wrapper .el-table--border.is-scrolling-left ~ .el-table__fixed {
  border-color: #002b4d;
}
.el-table--border::after,
.el-table--group::after {
  display: none;
}
// .el-table th>.cell{
//   padding: 0;
// }
